package com.dotflat.check.po;


import com.dotflat.rest.PO.AreableObjectBasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;

/**
 * 设备记录表
 */
@Data
@ApiModel("设备记录表对象")
@EqualsAndHashCode(callSuper=true)
public class DeviceRecordPO extends AreableObjectBasePO
{


    @ApiModelProperty(value = "设备Id关联")
    private String deviceId;

    @ApiModelProperty(value = "设备记录值")
    private String val;

    @Column(columnDefinition = " int default 1 COMMENT '设备类型 1：温度，2:湿度,3:噪音,4:空气质量' ")
    private Integer type;

    @ApiModelProperty(value = "记录类型名称")
    private String name;

    @ApiModelProperty(value = "状态0正常1超标")
    private int status;

    @ApiModelProperty(value = "备注")
    private String remark;
}
